from django.conf.urls.defaults import url, patterns



urlpatterns = patterns("topics.views",
    url(r"^(?P<group_slug>[-\w]+)$", "topics", name="topic_list"),
    url(r"^(?P<group_slug>[-\w]+)/create$", "topics", name="topic_create"),
    url(r"^(?P<topic_id>\d+)/edit/$", "topic", kwargs={"edit": True}, name="topic_edit"),
    url(r"^(?P<topic_id>\d+)/delete/$", "topic_delete", name="topic_delete"),
    url(r"^(?P<topic_id>\d+)/$", "topic", name="topic_detail"),
)

